<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Six</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

</head>
<body>
<a href="/" >返回首页</a>
<div id="app">
    消息: <input type="text" v-model="message">
    <button @click.prevent="send">发送消息</button>
</div>

</body>
<script>
    let app = new Vue({
        el: "#app",
        data: {
            message: ''
        },
        methods: {
            send() {
                let data = {
                    message: this.message
                };
                $.post("/delay/send", data, data => {
                    alert(data);
                })
            }
        },
        created() {

        }
    })
</script>
</html>